namespace UnitTestInjector.Exceptions
{
    #region Usings

    using System;
    using System.Diagnostics.CodeAnalysis;

    #endregion Usings

    public abstract class AssertionFailedException : Exception
    {
        protected AssertionFailedException(string message)
            : base(message)
        {
        }

        /// <summary>
        /// Creates and returns a string representation of the current exception.
        /// </summary>
        /// <returns>
        /// A string representation of the current exception.
        /// </returns>
        /// <PermissionSet><IPermission class="System.Security.Permissions.FileIOPermission, mscorlib, Version=2.0.3600.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" version="1" PathDiscovery="*AllFiles*"/></PermissionSet>
        [ExcludeFromCodeCoverage]
        public override string ToString()
        {
            return Message;
        }
    }
}